<?php namespace Admin\Controller;
use Hdphp\Controller\Controller;
/**
* 
*/
class CommonController extends Controller
{
	//构造函数
	public function __init()
	{
		$this->authLogin();
	}
	public function authLogin()
	{
		if(!isset($_SESSION['username'])||!isset($_SESSION['uid'])){
            //跳转到登陆控制器
            go(U('Login/index'));
        }
	}
}

 ?>